(function () {
  "use strict";
  setRemUnit();
  window.addEventListener("resize", setRemUnit);
  function setRemUnit() {
    var docEL = document.documentElement;
    var ratio = 18.75;
    var viewWidth = docEL.getBoundingClientRect().width || window.innerHeight;
    docEL.style.fontSize = viewWidth / ratio + "px";
  }
})();
